package com.lb.uts.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 任务执行记录
 * </p>
 *
 * @author liangb
 * @since 2019-04-26
 */
public class JobExecuteRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    private String jobId;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    /**
     * 远程执行消耗的时间，毫秒
     */
    private Long remoteSpend;

    /**
     * 远程执行结果，1：已调用，2：调用失败，3：执行失败，4：执行成功
     */
    private String callStatus;

    private String errorMsg;

    private String responseContent;

    /**
     * 执行的服务
     */
    private String ip;

    /**
     * 调度器IP
     */
    private String exeIp;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public Long getRemoteSpend() {
        return remoteSpend;
    }

    public void setRemoteSpend(Long remoteSpend) {
        this.remoteSpend = remoteSpend;
    }

    public String getCallStatus() {
        return callStatus;
    }

    public void setCallStatus(String callStatus) {
        this.callStatus = callStatus;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getResponseContent() {
        return responseContent;
    }

    public void setResponseContent(String responseContent) {
        this.responseContent = responseContent;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getExeIp() {
        return exeIp;
    }

    public void setExeIp(String exeIp) {
        this.exeIp = exeIp;
    }

    @Override
    public String toString() {
        return "JobExecuteRecord{" +
                "id='" + id + '\'' +
                ", jobId='" + jobId + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", remoteSpend=" + remoteSpend +
                ", callStatus='" + callStatus + '\'' +
                ", errorMsg='" + errorMsg + '\'' +
                ", responseContent='" + responseContent + '\'' +
                ", ip='" + ip + '\'' +
                ", exeIp='" + exeIp + '\'' +
                '}';
    }
}
